import BaseInput from "@/components/ProForm/BaseInput.vue";
import BaseCascader from '@/components/ProForm/BaseCascader.vue'
import BaseCheckBox from '@/components/ProForm/BaseCheckBox.vue'
import BaseColorPicker from '@/components/ProForm/BaseColorPicker.vue'
import BaseDatePicker from '@/components/ProForm/BaseDatePicker.vue'
import BaseDateTimePicker from '@/components/ProForm/BaseDateTimePicker.vue'
import BaseInputNumber from '@/components/ProForm/BaseInputNumber.vue'
import BaseRadio from '@/components/ProForm/BaseRadio.vue'
import BaseSelect from '@/components/ProForm/BaseSelect.vue'
import BaseSwitch from '@/components/ProForm/BaseSwitch.vue'
import BaseTimePicker from '@/components/ProForm/BaseTimePicker.vue'
import BaseTimeSelect from '@/components/ProForm/BaseTimeSelect.vue'
import BaseUpload from '@/components/ProForm/BaseUpload.vue'
import BaseDropdown from '@/components/ProForm/BaseDropdown.vue'





export const addeditConfig = {
    formProps: { // 表单属性
        labelPosition: 'left',
        labelWidth: 'auto',
        row:true,
    },
    formItems: [{
            name: BaseInput,
            props: { 
                label: '收據備註名稱',
                prop: 'content',
                span:24,
            },
            elProps: { 
                placeholder: '請輸入收據備註內容',
                clearable:true,
                type:'textarea'
            },
            value: '' 
        },
        {
            name:BaseInput,
            props: {
                label: '收據備註序號',
                prop: 'sort',
                span:24,
            },
            elProps: {
                placeholder: '請輸入收據備註序號',
                clearable: true,
                type:'number'
            },
            value: ''
        },
        {
            name: BaseSelect,
            options: [{
                value: 1,
                label: '正常',
            },
            {
                value: -1,
                label: '禁用',
            }],
            props: {
                label: '狀態',
                prop: 'status',
                span:24,
            },
            elProps: {
                placeholder: '',
                clearable: true,
                multiple: false,
            },
            value: []
        },
        // {
        //     name: BaseRadio,
        //     options: [{
        //         value: 1,
        //         label: '是',
        //     },
        //     {
        //         value: 2,
        //         label: '否',
        //     }],
        //     props: {
        //         label: '發票默認備註',
        //         prop: 'defaultInvoice',
        //         span:24,
        //     },
        //     elProps: {
              
        //     },
        //     value: 2
        // },

    ],
    rules: {
        content:{required:true,message:'請輸入收據備註名稱',trigger:['blur','change'] },
        sort:{required:true,message:'請輸入收據備註序號',trigger:['blur','change'] },
        status:{required:true,message:'請輸入收據備註狀態',trigger:['blur','change'] },
    }
}
